package com.tsd.base.service;

import com.tsd.base.entity.BasePrinter;
import com.tsd.base.entity.BasePrinterExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BasePrinter服务实现层接口
 *
 * @author david
 * @date 2022/05/12 09:38:04
 */
public interface BasePrinterService {

    /**
     * 描述：根据id获取BasePrinter
     *
     * @param id
     */
    BasePrinter getBasePrinterById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BasePrinter
     *
     * @param sid
     */
    BasePrinterExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除BasePrinter
     *
     * @param list
     */
    void deleteBasePrinters(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BasePrinter
     *
     * @param record
     * @param opUser
     */
    void saveBasePrinter(BasePrinter record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BasePrinter
     *
     * @param params
     * @param page
     */
    List<BasePrinterExt> findBasePrinters(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BasePrinter
     *
     * @param params
     */
    List<BasePrinterExt> findBasePrinters(Map<String, Object> params) throws Exception;

    /**
     * 获取默认打印机
     *
     * @return
     * @throws Exception
     */
    BasePrinterExt getDefaultPrinter() throws Exception;
}
